//:~
/**
 * $Id: PrototypeStatement_packed_switch.java 34 2009-05-07 01:25:20Z wendal1985 $
 * 
 * $LastChangedBy: wendal1985 $
 * @version $Revision: 34 $
 * 
 */
/*
 * This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.wendal.java.dex.decomplier.javafile.model.statement;

import com.wendal.java.dex.decomplier.javafile.model.PrototypeStatement;

public class PrototypeStatement_packed_switch extends PrototypeStatement {

    public String vx_name;
    
    public String data_offset;

    @Override
    public void parse() {

        super.parse();

        vx_name = info.substring(info.indexOf(" ") + 1 , info.indexOf(",")).trim();

        data_offset = info.substring(info.indexOf(",")+1).trim();
    }

    @Override
    public String toString() {
        return super.toString() + "\n/* get switch data from line_offset " + data_offset + " into "+ vx_name+" /*";
    }
}
